const mysql = require('mysql')
const host = 'localhost'
const user = 'root'
const password = '123456'
const database = 'bishe'

const db = mysql.createPool({
  host,
  user,
  password,
  database,
})
db.getConnection((err, data) => {
  if (err) return console.log('错误' + err)
})

module.exports = {
  db,
}
